package com.aaa.behind.controller;


import com.aaa.behind.service.IViewZoneBusinessService;
import com.aaa.entity.ViewZoneBusiness;
import com.aaa.util.PageInfo;
import com.aaa.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author whj
 * @since 2023-02-04
 */
@RestController
@RequestMapping("/view-zone-business")
public class ViewZoneBusinessController {

    @Autowired
    private IViewZoneBusinessService viewZoneBusinessService;

    @PostMapping("manageUnstockedStores")
    public Result manageUnstockedStores(@ModelAttribute PageInfo pageInfo, ViewZoneBusiness viewZoneBusiness){
        return new Result(viewZoneBusinessService.manageUnstockedStores(pageInfo, viewZoneBusiness));
    }

    @GetMapping("addBusinessDetail/{id}")
    public Result addBusinessDetail(@PathVariable Integer id){

        return new Result(viewZoneBusinessService.addBusinessDetail(id));
    }

}

